import { NgModule } from '@angular/core';
import { SearchComponent } from './search.component';
import { SearchService } from './search.service';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { CommonModule } from '@angular/common';
import { RouterModule } from '@angular/router';

import { CompanySearchComponent } from './company-search/company-search.component';
import { CompanyService } from '../../../modules/research/company/company.service';
import { SearchResultComponent } from './company-search/search-result/search-result.component';
import { PipesModule } from '../../pipes/pipes.module';


/**
 * Search module
 *
 * Author: Sorin Spiru
 * Date: 13.01.2018
 */
@NgModule({
    providers: [
        SearchService,
        CompanyService
    ],
    imports: [
        FormsModule,
        ReactiveFormsModule,
        CommonModule,
        RouterModule,
        PipesModule
    ],
    declarations: [
        SearchComponent,
        SearchResultComponent,
        CompanySearchComponent
    ],
    exports: [
        SearchComponent,
        SearchResultComponent,
        CompanySearchComponent
    ]
})
export class SearchModule { }
